package com.im.partchat.bean.main;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by fzl on 2017/6/29 0029.
 * VersionCode: 1
 * Desc:
 */

public class BannerBean implements Parcelable {
    private String url;
    private String title;
    private String pic;

    public BannerBean() {
    }

    public BannerBean(String title, String pic) {
        this.title = title;
        this.pic = pic;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public static Creator<BannerBean> getCREATOR() {
        return CREATOR;
    }

    public BannerBean(String url, String title, String pic) {
        this.url = url;
        this.title = title;
        this.pic = pic;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.pic);
    }

    protected BannerBean(Parcel in) {
        this.title = in.readString();
        this.pic = in.readString();
    }

    public static final Parcelable.Creator<BannerBean> CREATOR = new Parcelable.Creator<BannerBean>() {
        @Override
        public BannerBean createFromParcel(Parcel source) {
            return new BannerBean(source);
        }

        @Override
        public BannerBean[] newArray(int size) {
            return new BannerBean[size];
        }
    };
}
